﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Student>" %>

<% using (Html.BeginRouteForm("Default", new { controller = "Students", action = "Add" }))
   { %>
    <span>
        <%= Html.DropDownList("QualificationLevelId", (IEnumerable<SelectListItem>)ViewData["Levels"], "-", new { onchange = "loadGroups(this.id,'StudentsGroupId')" })%>
    </span>   
    <span>
        <select id="StudentsGroupId" name="StudentsGroupId">
            <option class="disabled">Выберите уровень</option>
        </select>
    </span>
        <span>
            <% Html.RenderPartial("~/Views/Administrators/Users/UserAddControl.ascx", Model); %>            
        </span>
    <div style="float: right">
        <input type="submit" value="OK" />
    </div>
<%} %>